<cfsetting enablecfoutputonly="true" />
<!--- 
|| LEGAL ||
$Copyright: Daemon Pty Limited 1995-2003, http://www.daemon.com.au $
$License: Released Under the "Common Public License 1.0", http://www.opensource.org/licenses/cpl.php$

$Modification by: Jeff Coughlin (jeff[at]jeffcoughlin[dot]com)
$Modification Notes: Modified to support jcPodcast plugin.

|| DESCRIPTION || 
$Description: Default template for jcPodcast Landing Page (to work with Mollio project template). See documentation for details on modifying and extending.
--->
<!--- @@displayname: b.2 columns - Main + Left hand nav --->

<cfimport taglib="/farcry/core/tags/container" prefix="con" />
<cfimport taglib="/farcry/core/tags/webskin" prefix="skin" />
<cfimport taglib="../../tags/webskin" prefix="myskinPlugin" />

<cfif structKeyExists(application.navID, "podcastEpisode")>
  <cfset request.NavID = application.navID['podcastEpisode'] />
</cfif>

<myskinPlugin:defaultHtmlHead bLoadPluginCssFile="#application.stplugins.jcPodcast.bLoadPluginCssFile#" bLoadJsFile="#application.stplugins.jcPodcast.bLoadJsFile#" />

<cfif listFindNoCase(listLast(stObj.enclosure, "."), "mp3")>
  <cfset variables.bIsMP3 = true />
<cfelse>
  <cfset variables.bIsMP3 = false />
</cfif>

<cfmodule template="/farcry/projects/#application.applicationname#/webskin/includes/dmHeader.cfm"
	layoutClass="type-b"
	pageTitle="#trim(stObj.title)#">

<cfoutput>	
	<div id="content">
		<div id="breadcrumb">
			</cfoutput><skin:breadcrumb separator=" / "><cfoutput>
		</div>
		<div id="utility">
		</cfoutput>

		<!--- secondary navigation --->
		<skin:genericNav navID="#request.navid#"
			functionMethod="getBloodline"
			functionArgs="jointable=""dmNavigation"", status=""#request.mode.lvalidstatus#"""
			id="nav-secondary"
			startlevel="3"
			bActive="true">

		<cfoutput>
		</div>
		<h1>#stObj.title#</h1></cfoutput>

		<con:container label="#stobj.objectID#_top">

		<skin:view typename="jcPodcastEpisode" objectid="#stObj.objectID#" webskin="displayAudioPlayer" />

    <cfoutput>
			#stObj.description#
		</cfoutput>

		<con:container label="#stobj.objectID#_bottom">

		<cfinclude template="/farcry/projects/#application.applicationname#/webskin/includes/dmUtility.cfm">									

		<cfoutput>
	</div>		
</cfoutput>

<cfmodule template="/farcry/projects/#application.applicationname#/webskin/includes/dmFooter.cfm">

<cfsetting enablecfoutputonly="false" />